package core.behaviors;

import core.Actor;
import core.CoreTypes;
import core.units.Unit;

public class Move extends Behavior {

	public Move() {
		super(CoreTypes.MOVE);
	}

	@Override
	public void step(Actor... actors) {
		super.step();
		try {
			Unit mover = (Unit) actors[0];
			mover.translate(mover.getVelocity().getXChange(), mover.getVelocity()
					.getYChange());		
		} catch (Exception e) {
			return; // do nothing
		}
		
	}

}
